<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<%@ page import="com.colabo.j2ee.web.oaf.monitorperspective.action.ScheduledTaskViewAction" 
%>
<%
	ScheduledTaskViewAction action = new ScheduledTaskViewAction();
	String scheduledTasks = action.loadScheduledTasks();
	
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Security Strategy Group View</title>
<script type="text/javascript">

    new MUI.List({
        container:'scheduledTaskListWrapper',
        showCheckBox:false,
        width:250,
        height:100,
        id:'scheduledTaskList',
        items:<%=scheduledTasks%>,
        columns:[
            {text:'任务名',name:'taskName','tipText':'taskName'},
            {text:'启用',name:'status','type':'checkbox'}
        ],
        commands:[
            {'text':'设置','name':'config','image':'resources/images/icons/16x16/cog.gif'}
        ],
        onItemCommand: function(item,self,cmd,img) {
            
            if ('stDetailConfig') {
                var taskKey = item.taskKey;
                var taskName = item.taskName;
            	MUI.scheduledTaskDetailConfigWindow('monitorperspective/scheduledtaskdetailconfig.jsp?selectedTaskKey='+taskKey,
            			taskName);
            }
        },
        onItemChecked: function(item,self,cmd,img) {
        },
        onItemSelected: function(item,self,cmd,img) {
        },
        onItemColumnBound: function(item,self,col,td) {
        }
    });
</script>
</head>
<body>
<div id="scheduledTaskListWrapper" ></div>
</body>
</html>